<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddZtypeCaCustomers extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('ca__customers', function (Blueprint $table) {
            $table->decimal('ztype')->default(0)->comment('电话不为空：1；电话为空微信不为空：2；微信电话都不为空：1；添加数据是确定，修改不改变');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('ca__customers', function (Blueprint $table) {
            $table->dropColumn('ztype'); 
        });
    }
}
